package com.insigma.business.qrcode.soldier.dao;

import com.insigma.business.qrcode.common.annotation.Crypt;
import com.insigma.business.qrcode.soldier.dto.searcher.SoldierDisabledInfoBSearcher;
import com.insigma.business.qrcode.soldier.entity.SoldierDisabledInfoDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Crypt(decryptFields = {"idCardNo", "", ""})
public interface SoldierDisabledInfoDao  {

    
    List<SoldierDisabledInfoDO> search(final SoldierDisabledInfoBSearcher innerSearcher);

    
    SoldierDisabledInfoDO get(final String id);

    
    Integer insert(final SoldierDisabledInfoDO soldierDisabledInfoDO);

    
    Integer update(final SoldierDisabledInfoDO soldierDisabledInfoDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

    @Crypt(encryptParamIndex = {0})
    SoldierDisabledInfoDO getSoldierDisabledInfoByIdCardNo(String idCardNo);
}
